home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / programr / atre27.exe / ATREE_27 / NOISYAND.LF < prev    next >
Text File  |  1992-08-01  |  2KB  |  110 lines

  1. #
  2. #
  3. #---- noisyand.lf
  4. #
  5. #
  6. #---- This is an lf example that tries to learn the AND
  7. #---- function of two boolean inputs.  The training is done
  8. #---- with contradictory data.   For each pair of values of the
  9. #---- input, for example A = 1, B = 0, there are three correct
  10. #---- training samples and two incorrect ones in the set.
  11. #---- The optimal decision here is to learn the AND, but
  12. #---- that may not always happen.  We train for 30 epochs.
  13.     
  14. #---- See example3.lf for explanations of the instructions.
  15.  
  16. tree
  17.  
  18.     size = 127
  19.  
  20.     vote =7
  21.  
  22.     max epochs  = 30
  23.  
  24.     save tree to "noisyand.tre"
  25.  
  26. function
  27.  
  28.     domain dimension = 2
  29.  
  30.     codomain dimension = 1
  31.  
  32.     coding = 1:1 1:1 1:1 
  33.  
  34.     quantization = 2 2 2
  35.  
  36.     save coding to "noisyand.cod"
  37.  
  38.  
  39. training set size = 20
  40. training set =
  41.  
  42. # A    B    A and B (right 3/5 = 60% of the time)
  43.   1    1    1
  44.   1    1    1
  45.   1    1    1
  46. # next two are noisy
  47.   1    1    0
  48.   1    1    0
  49.  
  50.   1    0    0
  51.   1    0    0
  52.   1    0    0
  53. # next two are noisy
  54.   1    0    1
  55.   1    0    1
  56.  
  57.   0    1    0
  58.   0    1    0
  59.   0    1    0
  60. # next two are noisy
  61.   0    1    1
  62.   0    1    1
  63.  
  64.   0    0    0
  65.   0    0    0
  66.   0    0    0
  67. # next two are noisy
  68.   0    0    1
  69.   0    0    1
  70.  
  71.  
  72. #---- We will test on the same 20 vectors to see if we can get close to 60% right
  73.  
  74. test set size = 20
  75. test set =
  76.  
  77. # A    B    A and B 
  78.   1    1    1
  79.   1    1    1
  80.   1    1    1
  81. # next two are noisy - if ALN learns AND, then it should get these wrong
  82.   1    1    0
  83.   1    1    0
  84.  
  85.   1    0    0
  86.   1    0    0
  87.   1    0    0
  88. # next two are noisy - if ALN learns AND, then it should get these wrong
  89.   1    0    1
  90.   1    0    1
  91.  
  92.   0    1    0
  93.   0    1    0
  94.   0    1    0
  95. # next two are noisy - if ALN learns AND, then it should get these wrong
  96.   0    1    1
  97.   0    1    1
  98.  
  99.   0    0    0
  100.   0    0    0
  101.   0    0    0
  102. # next two are noisy - if ALN learns AND, then it should get these wrong
  103.   0    0    1
  104.   0    0    1
  105.  
  106.  
  107. #EXPECTED ERROR HISTOGRAM
  108. #0 errors        12
  109. #1 errors        8
  110.